// 监听
chrome.runtime.onMessage.addListener(function (message) {
  if (message.type === 'find') {
    chrome.notifications.create({
      type: "basic",
      title: "状态",
      message: '主人～您有新的任务请查收！！！',
      iconUrl: `../images/successful.png`
    })
    return null
  }
  chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) {
    chrome.tabs.sendMessage(tabs[0].id, message)
  })
})

